
package net.swa.dewei.beans.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**服务站信息**/
@Entity
@Table(name = "t_FuwuZhan")
public class FuwuZhan
{
    //PK
    private Long id;

    /**名称**/
    private String name;

    /**服务站登录名*/
    private String loginName;

    /**省**/
    private String province;

    /**市*/
    private String city;

    /**县**/
    private String town;

    /**服务站地址*/
    private String address;

    /**联系人**/
    private String lxr;

    private String lxrTel;

    /**说明**/
    private String detailInfo;

    /**创建时间**/
    private String crateDate;

    /**更新时间**/
    private String updateDate;

    private int sort;

    private String mac;

    //仅作登陆校验,不做数据库映射
    private String token;

    @GenericGenerator(name = "generator", strategy = "native")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false)
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getDetailInfo()
    {
        return detailInfo;
    }

    public void setDetailInfo(String detailInfo)
    {
        this.detailInfo = detailInfo;
    }

    public String getCrateDate()
    {
        return crateDate;
    }

    public void setCrateDate(String crateDate)
    {
        this.crateDate = crateDate;
    }

    public String getUpdateDate()
    {
        return updateDate;
    }

    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }

    public int getSort()
    {
        return sort;
    }

    public void setSort(int sort)
    {
        this.sort = sort;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getTown()
    {
        return town;
    }

    public void setTown(String town)
    {
        this.town = town;
    }

    public String getAddress()
    {
        return address;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getLxr()
    {
        return lxr;
    }

    public void setLxr(String lxr)
    {
        this.lxr = lxr;
    }

    public String getLxrTel()
    {
        return lxrTel;
    }

    public void setLxrTel(String lxrTel)
    {
        this.lxrTel = lxrTel;
    }

    public String getLoginName()
    {
        return loginName;
    }

    public void setLoginName(String loginName)
    {
        this.loginName = loginName;
    }

    @Transient
    public String getToken()
    {
        return token;
    }

    public void setToken(String token)
    {
        this.token = token;
    }

    public String getMac()
    {
        return mac;
    }

    public void setMac(String mac)
    {
        this.mac = mac;
    }

    @Override
    public String toString()
    {
        return "FuwuZhan [address=" + address + ", city=" + city + ", crateDate=" + crateDate + ", detailInfo=" + detailInfo + ", id=" + id + ", loginName=" + loginName + ", lxr=" + lxr + ", lxrTel=" + lxrTel + ", name=" + name + ", province=" + province + ", sort=" + sort + ", token=" + token + ", town=" + town + ", updateDate=" + updateDate + "]";
    }
}
